package com.hqu.environment.controller.admin;

import com.alibaba.fastjson.JSONObject;
import com.hqu.environment.annotation.LoginUser;
import com.hqu.environment.dao.AuthorityDao;
import com.hqu.environment.dao.AuthorityDao;
import com.hqu.environment.dto.AuthorityDTO;
import com.hqu.environment.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @Description: 设备分类Controller
 * @Date: 2019/04/25 22:15
 * @Author: 邓勇嘉
 **/
@Controller
@RequestMapping("admin/authority")
public class AuthorityController {
    @Autowired
    AuthorityDao authorityDao;


    @RequestMapping("/getList")
    @ResponseBody
    public Result getAuthorityList() {
        List<AuthorityDTO> authorityList = authorityDao.selectList();
        return Result.success().add("authorityList",authorityList);
    }

}
